package cn.lovezaoan.hpcenter.ui.ext
{
    import flash.xml.XMLNode;
    import mx.collections.ArrayCollection;
    import mx.collections.ArrayList;
    import mx.containers.VBox;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.events.IndexChangedEvent;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.http.HTTPService;
    import mx.utils.ObjectProxy;
    import cn.lovezaoan.hpcenter.manager.Portal;
    
    public class PanelBase extends VBox
    {
        
        public function PanelBase(msgs:ArrayList = null, metadata:Array = null)
        {
            super();
            percentWidth = 100;
            percentHeight = 100;
            this.messages = msgs;
            this.metadata = metadata;
            initByMessages();
        }
        
        [Bindable]
        public var messages:ArrayList;
        
        public var metadata:Array;
        
        // Dispatches an event when the ViewStack index changes, which triggers a state save.
        // ViewStacks are only in ChartContent and FormContent.
        protected function dispatchViewStackChange(newIndex:Number):void
        {
            dispatchEvent(new IndexChangedEvent(IndexChangedEvent.CHANGE, true, false, null, -1, newIndex));
        }
        
        protected function initByMessages():void
        {
        
        }
    }
}